package com.liangwj.springbootrabbitmq.rabbit.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <b>Description:</b> TODO <br/>
 * @author Lingwenjun
 * @date 2019/1/14-16:29
 * @version 1.0
 */
@Component
@RabbitListener(queues = "topic.messages")
public class TopicReceiver1 {

    @RabbitHandler
    public void process(String message) {
        System.out.println("Topic receiver2 : message = [" + message + "]");
    }
}
